package com.xg.utils;


import java.io.Serializable;

@SuppressWarnings("all")
public class PageUtils implements Serializable {

    private static final long serialVersionUID = 1L;

    private int limit = 10;//每页的个数

    private int offset;//当前第几页
    
    private String sort;//排序条件
    
    private String order;//排序方式
    
    private String searchParams;

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getSearchParams() {
		return searchParams;
	}

	public void setSearchParams(String searchParams) {
		this.searchParams = searchParams;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = (offset/limit)+1;;
	}
}
